import request from '@/utils/request'

export function getTreeList(data) {
  return request({
    url: '/shuoMingCatalog/getTreeList',
    method: 'post',
    params: data
  })
}

export function saveData(data) {
  return request({
    url: '/shuoMingCatalog/save',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/shuoMingCatalog/edit',
    method: 'post',
    data
  })
}

export function disabled(data) {
  return request({
    url: '/shuoMingCatalog/delete',
    method: 'post',
    params: data
  })
}

export function getInfo(data) {
  return request({
    url: '/shuoMingCatalog/getInfo',
    method: 'get',
    params: data
  })
}

export function getAllLeafNode(data) {
  return request({
    url: '/shuoMingCatalog/getAllLeafNode',
    method: 'get',
    params: data
  })
}

export function getInitialLoading(data) {
  return request({
    url: '/shuoMingCatalog/getInitialLoading',
    method: 'post',
    params: data
  })
}

export function getAgainLoading(data) {
  return request({
    url: '/shuoMingCatalog/getAgainLoading',
    method: 'post',
    params: data
  })
}
